package cn.edu.lingnan.translation.service;

import cn.edu.lingnan.translation.entity.Question;
import cn.edu.lingnan.translation.entity.vo.QuestionQueryVo;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author asus
 */
public interface QuestionService extends IService<Question> {

    /**
     * 条件查询方法
     */
    IPage<Question> getQuestions(IPage<Question> page, Wrapper<Question> wrapper);

    /**
     * 添加试题
     * @param question
     * @return
     */
    Integer insertQuestions(Question question);

    /**
     * 更新试题内容及状态
     * @param id
     * @param question
     * @return
     */
    Integer updateQuestions(List<String> id, Question question);

    /**
     * 删除试题
     * @param id
     * @return
     */
    Integer deleteQuestions(List<String> id);
}
